import Vue from 'vue'
import Router from 'vue-router'
import device from './device.vue'

const home = resolve => require(['./components/home'], resolve);
const bindCar = resolve => require(['./components/bindCar'], resolve);
const checkCar = resolve => require(['./components/checkCar'], resolve);
Vue.use(Router);


const routes = {
  path: '/',
  component: device,
  children: [
    {path: '/device/home',component:home, name: '检测端首页'},
    {path: '/device/bindCar',component:bindCar, name: '检测端绑定车辆'},
    {path: '/device/checkCar',component:checkCar, name: '检测端检查车辆'}
  ]
}

export default routes
